package com.ruoyi.wms.domain.bo.employee;


import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.mybatis.core.domain.BaseEntity;
import com.ruoyi.wms.domain.entity.employee.KMetricDetails;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * K项指标明细业务对象 k_metric_details
 *
 * @author 邓滔滔
 * @date 2024-11-27
 */

@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = KMetricDetails.class, reverseConvertGenerate = false)
public class KMetricDetailsBo extends BaseEntity {

    /**
     * ID - 自增
     */
    private Long id;

    /**
     * 关联门店ID
     */
    @NotNull(message = "关联门店ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long storeId;

    /**
     * 营业额
     */
    @NotNull(message = "营业额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal revenue;

    /**
     * 小吃销售
     */
    @NotNull(message = "小吃销售不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal snackSales;

    /**
     * 新增会员数
     */
    @NotNull(message = "新增会员数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long newMembers;

    /**
     * 饱和数
     */
    @NotNull(message = "饱和数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long saturation;

    /**
     * 计算周期
     */
    @NotNull(message = "计算周期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date calculationPeriod;

    /**
     * 实际计算金额
     */
    private BigDecimal actualAmount;

    /**
     * K项总金额
     */
    private BigDecimal kTotalSalay;

    /**
     * 备注
     */
    private String remarks;


}
